﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/// <summary>
/// buff组件
/// </summary>
public class BuffComponent : ECSMomentCompoentBase
{
    /// <summary>
    /// 角色身上已有buff信息
    /// </summary>
    public List<BuffInfo> buffList=new List<BuffInfo>();
    public override ECSMomentCompoentBase DeepCopy()
    {
        int go = buffList.Count;
        if (go<=0)
        {
            return null;
        }
        BuffComponent bc=new BuffComponent();
        for (int i = 0; i < go; i++)
        {
          bc.buffList.Add(buffList[i].DeepCopy());
        }

        return bc;
    }



 
}

